package com.vpx.server.framework.utils;

import java.util.HashSet;
import java.util.List;

/**
 * @author denglw
 * @title: vpx
 * @module 集合工具
 * @description: TODO
 * @date 2021/9/19 16:25
 */
public class ListUtils {
    /**
     * 去重
     *
     * @param list
     * @return
     */
    public static List removeDuplicate(List list) {
        HashSet h = new HashSet<>(list);
        list.clear();
        list.addAll(h);
        return list;
    }
}
